import 'package:json_annotation/json_annotation.dart';
import 'message_data.dart';

part 'message.g.dart';

@JsonSerializable()
class Message {
  int? id;
  int? time;

  MessageData? data;

  Message();
  factory Message.fromJson(Map<String, dynamic> json) =>
      _$MessageFromJson(json);
  Map<String, dynamic> toJson() => _$MessageToJson(this);
}
